#ifndef KCALC_H
#define KCALC_H

#include <QDialog>
#include "ui_kcalc.h"

class Kcalc:public QDialog,public Ui::Kcalc
{
    Q_OBJECT
public:
    
    Kcalc (QWidget *parent=nullptr);

    /* double expr (bool get);
    double term (bool get);
    double prim (bool get);
    token_value get_token();
    */
                                   
public slots:
    int calculate(void);
};
/*
namespace core{
enum token_value {
    NAME, NUMBER, END,
    PLUS='+', MINUS='-', MUL='*', DIV='/',
    PRINT=';', ASSIGN='=', LP='(', RP=')'
};
 extern token_value curr_tok ;
extern   double number_value;
 extern   std::string string_value;
extern token_value get_token();
 double prim(bool get);
 double term(bool get);
 double expr(bool get);
}

extern std::map<std::string,double>table;
*/
#endif
